package com.deer.wms.system.manage.web;

import com.deer.wms.project.root.core.result.Result;
import com.deer.wms.project.root.core.result.ResultGenerator;
import com.deer.wms.system.manage.service.CrmDeptAreaService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: xu
 * @Date: 2022/07/08/13:44
 * @Description:
 */
@Api(description = "部门绑定库位接口")
@RestController
@RequestMapping("/crmDept")
public class CrmDeptAreaController {
    @Autowired
    private CrmDeptAreaService crmDeptAreaService;

    @GetMapping("listDeptId")
    public Result listByDeptId(Integer deptId) {
        return ResultGenerator.genSuccessResult(crmDeptAreaService.listByDeptId(deptId));
    }

}
